package driver.nxt.action;

import driver.actions.CenterTurningAction;
import driver.exceptions.ExecuteException;
import driver.nxt.NXTController;

/**
 * Centers the NXT steering
 *
 * @author David Martin
 */
public class NXTCenterTurningAction extends CenterTurningAction
{

  private NXTController controller;

  /**
   *
   * @param controller the NXT controller object
   */
  public NXTCenterTurningAction(NXTController controller)
  {
    this.controller = controller;
  }

  /**
   * Center the NXT steering
   *
   * @throws driversuite.exceptions.ExecuteException
   */
  public void execute() throws ExecuteException
  {
    controller.resetTurnOffset();
  }
}
